<template >
	<section>
		<!--列表(查询结果-当前页)-->
		<el-table :data="StuMoney" border style="width:90%;margin:30px auto">

			<el-table-column fixed prop="studentName" label="姓名" width="130">
			</el-table-column>

			<el-table-column  prop="studentId"  label="学号" width="130">
			</el-table-column>

			<el-table-column prop="studentIdcard" label="身份证" width="200">
			</el-table-column>

			<el-table-column prop="firstMoneyTimeStr" label="第一次缴费时间" width="180">
			</el-table-column>

			<el-table-column prop="firstMoney" label="第一次缴费" width="160">
			</el-table-column>

			<el-table-column prop="firstMoneyState" label="第一次缴费状态" width="165">
			</el-table-column>

			<el-table-column prop="seMoneyTimeStr" label="第二次缴费时间" width="160">
			</el-table-column>

			<el-table-column prop="secondMoney" label="第二次缴费" width="160">
			</el-table-column>

			<el-table-column prop="secondMoneyState" label="第二次缴费状态" width="180">
			</el-table-column>

		</el-table>

	</section>
</template>

<script>
import { queryStuMoney } from '../../api/api';
export default {
	data() {
			return {
				StuMoney: [],
			}
		},

	methods: {
		listMoney() {
			//Id要从session取
			let para = {
				studentId:this.StuMoney.studentId,
				studentName:this.StuMoney.studentName,
				studentIdcard:this.StuMoney.studentIdcard,
				firstMoneyTimeStr:this.StuMoney.firstMoneyTimeStr,
				firstMoney:this.StuMoney.firstMoney,
				firstMoneyState:this.StuMoney.firstMoneyState,
				seMoneyTimeStr:this.StuMoney.seMoneyTimeStr,
				secondMoney:this.StuMoney.secondMoney,
				secondMoneyState:this.StuMoney.secondMoneyState
			};

			queryStuMoney(para).then((res) => {
				this.StuMoney = res.resData;
			});
		},
	},

	mounted() {
		this.listMoney();
	}
};
</script>
